package icu.lookyousmileface.service;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @author starrysky
 * @title: UserService
 * @projectName dubbo_zookeeper
 * @description: service layer
 * @date 2021/2/1113:00
 */
@Service
public class UserService {
    /**
     * 远程调用
     */
    @Reference
    TicketService ticketService;
    @Scheduled(cron = "* * * * * ?")
    public void byTicket(){
        String ticket = ticketService.getTicket();
        System.out.println("在注册中心拿到===》"+ticket);
    }


}
